using System;
using TechHeadBrothers.Portal.Web.SilverlightStreaming;

namespace TestApplication
{
    internal class Program
    {
        private static void Main()
        {
            SilverlightStreamingManager mgr =
                new SilverlightStreamingManager("TOBEDEFINED", "TOBEDEFINED");

            string fileset = "testvideo";

            //if (mgr.AddFileSet(@"T:\_Projects\Silverlight\SilverlightStreaming\media\annivfiona.zip", fileset))
            //    Console.WriteLine("Uploaded sucessfully!! ");
            //else
            //    Console.WriteLine("Something went wrong !!");

            if (mgr.UploadVideo(@"T:\_Projects\Silverlight\SilverlightStreaming\media\annivfiona.wmv", fileset))
                Console.WriteLine("Uploaded sucessfully!! ");
            else
                Console.WriteLine("Something went wrong !!");

            Console.ReadKey();

            if (mgr.DeleteFileset(fileset))
                Console.WriteLine("Deleted sucessfully!! ");
            else
                Console.WriteLine("Delete went wrong !!");
        }
    }
}